The math to compute translations was wrong when sliding in; also, don't
depend on the slide value for the translation anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=694064
_getTranslation: function() {
let child = this.actor.get_first_child();
let direction = getRtlSlideDirection(this.layout.slideDirection, child);
-
- let slide = this.getSlide();
let visibleWidth = this.getVisibleWidth();
if (direction == SlideDirection.LEFT)
- return ((slide - 1) * visibleWidth);
+ return - visibleWidth;
else
- return ((1 - slide) * visibleWidth);
+ return visibleWidth;
},
_updateTranslation: function(slidingIn) {